home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / utility.arc / UTILITYC.DOC < prev    next >
Encoding:
Text File  |  1984-04-24  |  25.3 KB  |  494 lines

  1.  
  2.  
  3.         CCDB Diskette File Utility Program
  4.  
  5.         I. Introduction
  6.  
  7.            The  purpose  of  the utility program ('UTILITYC.EXE'  is  the 
  8.         compiled version,  'UTILITYC.BAS' is the BASIC source code) is to 
  9.         enable  users to partition and recombine the CCDB data  files  to 
  10.         suit  their  special  needs.  The  program is  designed  for  the 
  11.         counties and cities file sets.  The program is not needed for and 
  12.         will not work with the place file set. UTILITYC is neither a data 
  13.         base  system  nor a sophisticated display program.  UTILITYC  may 
  14.         expedite  the  selection and reorganization of  the  data  before 
  15.         entering a data base package. 
  16.  
  17.         A.  File Partitioning
  18.  
  19.             The  program provides for vertical and horizontal  partitions 
  20.         of files to be extracted. A vertical partition refers to a subset 
  21.         of  data  items  or  variables  for  all  geographic  areas.    A 
  22.         horizontal  partition refers to a subset of geographic areas  for 
  23.         all data items.   Simultaneous horizontal and vertical partitions 
  24.         are  also  possible  (a  subset of data items  for  a  subset  of 
  25.         geographic  areas).  Typical partition jobs  are:  selecting  the 
  26.         State  totals,  selecting records for a single  State,  selecting 
  27.         SMSA counties.
  28.  
  29.         B.  File Recombination
  30.  
  31.         If  several data files include records for the same areas in  the 
  32.         same  sequence the user may next want to combine them into a file 
  33.         with longer records.  This can be done in several steps with  two 
  34.         input files and one output file used at each step.  At each step, 
  35.         wanted items on the input files can be selected so that  unwanted  
  36.         items  do  not  appear on the output file.  The  utility  program 
  37.         allows  2 files with identical record identifiers to be  combined 
  38.         into an output file with the same record identifiers.   The  user 
  39.         can  specify  the  data items to be selected from each  file  and 
  40.         their order in  the output files. Data files can also be combined 
  41.         with the file containing area names and metropolitan area codes.
  42.          
  43.         C.  Additional Functions
  44.  
  45.         Additional  functions  are  included in the  utility  program  to 
  46.         assist  in  the partitioning and recombining of data  files.  The 
  47.         program  allows the user to list the files on the disks on the  A 
  48.         or  B  drives;  to list the data dictionary for a data file  (see 
  49.         below);  or to list the data in a data file.  These functions can 
  50.         be accessed without leaving the utility program.
  51.  
  52.  
  53.  
  54.  
  55.  
  56.         D.  Data Dictionaries
  57.  
  58.         Each data file in the CCDB set has an associated data  dictionary 
  59.         file  that contains a record for each data item in the data file.  
  60.         The  utility  program automatically generates a  data  dictionary 
  61.         file   for   each  partition  and   recombination produced.  Data 
  62.         Dictionary file names and data file names are related. Data files 
  63.         have  the extension '.TXT'.   Dictionary files use the same  base 
  64.         name and the extension '.DCT'. These data dictionaries should not 
  65.         be confused with the consolidated data dictionary for the  entire 
  66.         file  set,  CNTYDICT.DOC and CITYDICT.DOC.  The data dictionaries 
  67.         referred  to in this document are the abbreviated ones  found  on 
  68.         the  same  disk as the associated data file.  When  copying  data 
  69.         files be sure to always copy the associated data dictionary file. 
  70.         UTILITYC   will not operate on a data file if the associated data 
  71.         dictionary file is not present on the same disk.
  72.  
  73.         (Dictionaries  are  not present on the data disks for  the  State                                                 
  74.         edition.  One set of dictionaries is provided on the U.S. Summary 
  75.         disk (C34).  The  dictionaries  may be copied onto the data disks 
  76.         prior to use of the UTILITYC program. The names of the data files 
  77.         are  not  the  same  for all of the States.  The  State  code  is 
  78.         appended  to  the base part of the data file name.  File  10  for 
  79.         Alabama (State code 01) is not merely CCDB10 but  CCDB1001.  When 
  80.         copying  the dictionaries for a particular State,  the State code 
  81.         should  be  appended  onto  the  base  part  of  the  file  name. 
  82.         Alternatively,  the  State codes could be removed from  the  data 
  83.         file  names.  Then  the  dictionaries  could  be  copied  without 
  84.         changing their names. Since a maximum of 112 files are allowed on 
  85.         a double sided diskette,  and since 70 files comprise the  county 
  86.         and  city  data  sets,  it is not possible to place  all  of  the 
  87.         associated dictionary files on the diskette with the data files.)
  88.  
  89.  
  90.         II.  A Demonstration of the Program.
  91.  
  92.         If  you have not yet made a working copy of the CCDB disks do  so 
  93.         before  proceeding.   Do not use your master copies.  The following 
  94.         demonstration  assumes  a  system with  two  disk  drives 
  95.         designated A and B. If you have a system where a second drive
  96.         has   a  designation  other  than  B,   substitute   that 
  97.         designation   wherever  the  letter  B  appears  in   the 
  98.         following demonstration.
  99.         
  100.         The  following demonstration uses county data.  Similar  examples 
  101.         could be carried out using city data. But sample files for cities 
  102.         are not provided.  To apply these examples using city data files, 
  103.         substitute  a four digit city code wherever a three digit  county 
  104.         code is indicated in the following demonstration.
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.         A.  The Master Menu
  112.  
  113.         Insert  the  Documentation/software Disk into drive A.  Insert  a 
  114.         second disk into drive B.  This disk must not be write  protected 
  115.         and  must  have  at least 100,000 bytes of  freespace  available. 
  116.         After the A> prompt enter 'UTILITYC'. (If the compiled version of 
  117.         UTILITYC does not work then remove the disk in drive A;  insert a 
  118.         disk  containing BASICA;  copy BASICA onto the disk in  drive  B; 
  119.         reinsert the Documentation/software disk into drive A;  and enter 
  120.         'B:BASICA  UTILITYC'.)   The master menu will appear as shown  in 
  121.         figure 1.
  122.  
  123.         ----------------------------------------------------------------
  124.         MASTER MENU
  125.         -----------------------------------------------------------
  126.         1.  LIST FILE NAMES
  127.         2.  LIST DICTIONARY FOR A DATA FILE
  128.         3.  LIST DATA FROM A DATA FILE
  129.         4.  PRODUCE A SUBSET OF A DATA FILE (VERTICAL AND/OR HORIZONTAL)
  130.         5.  COMBINE TWO INPUT FILES INTO ONE OUTPUT FILE (VERTICAL)
  131.         6.  PRODUCE A COPY OF A DATA FILE WITH AREA NAMES AND CODES ADDED
  132.         7.  FINISHED
  133.         -----------------------------------------------------------
  134.         ENTER NUMBER :
  135.         ----------------------------------------------------------------
  136.         Figure 1.  Master Menu
  137.  
  138.  
  139.         B.  Listing File Names
  140.  
  141.         Enter a '1',  'LIST FILE NAMES.'  Next hit the RETURN (or  ENTER) 
  142.         key.  (It  is to be understood from here on that no user response 
  143.         is  complete until the user hits the RETURN or ENTER  key.)   The 
  144.         system will respond 'ENTER A FOR A DRIVE,  B FOR B DRIVE.'  Enter 
  145.         'A'.  The  system will list the files on the Introductory disk as 
  146.         shown in figure 2.
  147.  
  148.         -------------------------------------------------------------------
  149.         DEMO1   .DCT      DEMO1   .TXT      DEMONAME.TXT      DEMO2   .DCT
  150.         DEMO2   .TXT      INTRODUC.DOC      UTILITYC.BAS      DBASEII .DOC
  151.         UTILITYC.EXE      MSANECMA.SDF      CMSA    .SDF      PMSA    .SDF
  152.         CNTYDICT.DOC      UTILITYC.DOC
  153.  
  154.         -------------------------------------------------------------------
  155.         Figure 2. Display of the names of files on the Documentation/
  156.           Software disk 
  157.  
  158.         Note  the five file names 'DEMO1.TXT',  'DEMO1.DCT', 'DEMO2.TXT', 
  159.         'DEMO2.DCT' and 'DEMONAME.TXT'.  These are the five files used in 
  160.         the rest of the demonstration.  DEMO1.TXT is an extract from  the 
  161.         first  CCDB data file,  CCDB01.TXT.  The extract contains records 
  162.         for  U.S.  total,  and all records for the States of Alabama  and 
  163.         Alaska,   a  total  of  93  records.  DEMO2.TXT  bears  the  same 
  164.         relationship to the second CCDB data file, CCDB02.TXT.  DEMO1.DCT 
  165.         and DEMO2.DCT are simply copies of CCDB01.DCT and CCDB02.DCT, the 
  166.         data  dictionary  files  for the first  and  second  data  files. 
  167.         DEMONAME.TXT  is an extract from the file CCDB00.TXT.  CCDB00.TXT 
  168.         contains a record with the area name and metropolitan area  codes 
  169.         for  all  areas in the county file set.  DEMONAME.TXT contains  a 
  170.         record  for  each  of the areas contained in  DEMO1.TXT  as  just 
  171.         described.  Hit  the  RETURN  (or ENTER)  key,  the  master  menu 
  172.         reappears.
  173.  
  174.         C.  Listing the Dictionary for a Data File
  175.  
  176.         Enter  a '2' 'LIST THE DICTIONARY FOR A DATA  FILE'.  The  system 
  177.         will  ask  for the name of a file.   Enter  'DEMO1'.  (Do  not 
  178.         include  the  file  suffix  'TXT'  or'DCT'.   This  rule  applies 
  179.         throughout the system when referring to data or dictionary files. 
  180.         Whenever  a file name is requested,  enter only the base part  of 
  181.         the  name.)  The display appears on the screen as shown in figure 
  182.         3a. The corresponding display for DEMO2 appears in figure 3b. 
  183.  
  184.         -------------------------------------------------------------
  185.         DATA DICTIONARY FOR FILE : DEMO1  
  186.         ---------------------------------------------
  187.         1. LAND8001   LAND AREA IN SQUARE MILES 1980
  188.         2. POPG7001   POPULATION (APRIL 1) 1980
  189.         3. POPG8001   POPULATION (APRIL 1) 1970
  190.         4. POPG8002   RANK OF COUNTY POPULATION 1980
  191.         5. POPG8003   POPULATION PER SQUARE MILE 1980
  192.         6. POPG8005   URBAN POPULATION 1980
  193.         ---------------------------------------------
  194.         HIT RETURN TO CONTINUE.
  195.  
  196.         fig. 3a
  197.  
  198.         DATA DICTIONARY FOR FILE : DEMO2
  199.         ---------------------------------------------
  200.         1. POPG8009   WHITE POPULATION 1980
  201.         2. POPG8011   BLACK POPULATION 1980
  202.         3. POPG8013   AMERICAN INDIANS, ESKIMOS AND ALEUTS 1980
  203.         4. POPG8014   ASIAN AND PACIFIC ISLANDERS 1980
  204.         5. POPG8017   SPANISH-ORIGIN POPULATION 1980
  205.         6. POPG8040   FEMALE POPULATION 1980
  206.         ---------------------------------------------
  207.         HIT RETURN TO CONTINUE.
  208.  
  209.         figure 3b
  210.         -------------------------------------------------------------
  211.         Figure 3. Data dictionary displays for DEMO1 and DEMO2
  212.  
  213.         Each  line  of the display describes one data item  in  the  file 
  214.         DEMODATA.TXT.  Using this function,  the user is able to see what 
  215.         data  items are in a file.   After the listing,  the system again 
  216.         writes  'HIT RETURN TO CONTINUE.'  Hit RETURN.  The  master  menu 
  217.         appears.
  218.  
  219.  
  220.  
  221.         D.  Listing Data from a Data File 
  222.  
  223.         Enter a '3',  'LIST DATA FROM A DATA FILE'. The system first asks 
  224.         for an input file name. Enter 'DEMO1'.  The system then responds 
  225.         with  the question:  'DO YOU WISH TO SELECT A SUBSET OF  RECORDS? 
  226.         (YES/NO):   If  you respond 'No' (just 'N' will do),  all of  the 
  227.         records  in  the file will be listed.  Enter  instead  'Y'.   The 
  228.         record subset specification menu shown in figure 4 will appear.
  229.  
  230.         -----------------------------------------------------------------
  231.         RECORD SUBSET SPECIFICATION OPTIONS
  232.         ------------------------------------------------
  233.         1.  USE CURRENT STATE-COUNTY CODE SPECIFICATIONS
  234.         2.  DISPLAY CURRENT SPECIFICATIONS
  235.         3.  OBTAIN SPECIFICATIONS FROM A FILE
  236.         4.  SAVE CURRENT SPECIFICATIONS INTO A FILE
  237.         5.  ENTER NEW SPECIFICATIONS
  238.         6.  RETURN TO MASTER MENU
  239.  
  240.             (NOTE: FOR CITIES USE A FOUR DIGIT CITY CODE
  241.             INSTEAD OF A THREE DIGIT COUNTY CODE.)
  242.         ------------------------------------------------
  243.         ENTER NUMBER:
  244.  
  245.         -----------------------------------------------------------------
  246.         Figure 4.  Record subset specification menu
  247.  
  248.  
  249.         The  first  four options will be explained below.   Enter  a  '5' 
  250.         'ENTER NEW SPECIFICATIONS'.   The instructions shown in figure  5 
  251.         appear.
  252.  
  253.         -----------------------------------------------------------------
  254.         ENTER STATE-COUNTY CODES. THREE FORMS ARE VALID.
  255.         -----------------------------------------------------------------
  256.         FORM  1 : <STATE-COUNTY CODE>-<STATE-COUNTY  CODE>   SPECIFIES  A 
  257.                   RANGE
  258.         FORM  2 : <STATE-COUNTY CODE>                        SPECIFIES A 
  259.                   SINGLE AREA
  260.         FORM  3 : SAME AS FORM 2 BUT CONTAINING DON'T  CARE  CHARACTERS 
  261.                   ('?').
  262.         E.G.   ??000  SPECIFIES A GROUP OF 52  RECORDS:  THE  U.S.  TOTAL 
  263.         RECORD, 50  STATE TOTAL RECORDS, AND A RECORD FOR THE DISTRICT OF 
  264.         COLUMBIA.   FORM  3  MUST BE USED ALONE.   FORMS 1 AND 2  MAY  BE 
  265.         INTERMIXED  AND  REPEATED  BUT ALL CODES  MUST  BE  IN  ASCENDING 
  266.         SEQUENCE.
  267.             (NOTE: FOR CITIES USE A FOUR DIGIT CITY CODE
  268.             INSTEAD OF A THREE DIGIT COUNTY CODE.)
  269.         -----------------------------------------------------------------
  270.         ENTER CODE(S) OR END:
  271.  
  272.         -----------------------------------------------------------------
  273.         Figure 5.  State-county code specification instructions
  274.  
  275.  
  276.         Enter  '??000'.  The  system  will list  the  state-county  codes 
  277.         selected (that is, '00000', '01000','02000').  Upon completion of 
  278.         the  specifications,  the system responds with the  message  'THE 
  279.         AREA CODES SELECTED ARE NOW THE CURRENT SPECIFICATIONS.' followed 
  280.         by 'HIT RETURN TO CONTINUE.' Hit RETURN. The menu shown in figure 
  281.         4 reappears. If the specifications are complex, they can be saved 
  282.         in a file using option 4 and recalled later using option 3.  Room 
  283.         for a small file must be available.   Any DOS-permitted name  can 
  284.         be used.  File extensions are not provided.  The user may include 
  285.         them.  The  convention  for data and dictionary file  names  (see 
  286.         section II B above) does not apply to specification files.
  287.  
  288.         Enter  a '2',  DISPLAY CURRENT SPECIFICATIONS'.   The system will 
  289.         list  the  codes specified above as shown in figure 6.
  290.  
  291.         ---------------------------------
  292.         AREAS CURRENTLY SPECIFIED
  293.         -------------------------
  294.         00000
  295.         01000
  296.         02000
  297.         -------------------------
  298.         HIT RETURN TO CONTINUE.
  299.  
  300.         --------------------------------
  301.         Figure 6. Sample area specification listing
  302.  
  303.         Hit RETURN.  The system again returns to the menu shown in fig.3. 
  304.         Enter a '1' 'USE CURRENT STATE-COUNTY CODE  SPECIFICATIONS'. This 
  305.         option  is the 'exit and proceed' option and the only option that 
  306.         does  not  loop back to the menu shown in figure  3.  The  system 
  307.         responds  with  the question 'DO YOU WISH TO SELECT A  SUBSET  OF 
  308.         ITEMS?    (YES/NO)'.   Having  specified  a  vertical  subset  of 
  309.         records,  we  are  now faced with the decision  of  specifying  a 
  310.         subset  of items within each record.  A 'No' answer means we want 
  311.         the entire record listed.  Enter 'YES'.  The system responds with 
  312.         'Enter  the position of one or more selected  item(s)(or  END):'. 
  313.         Say the first, third, and fourth items are desired.  Enter a '1'.  
  314.         The  system  responds again as above.  Enter a  '3'.   After  the 
  315.         system  responds,  enter  a '5'.   Now after the system  responds 
  316.         enter 'END'.  This sequence of entries specifies that only  items 
  317.         1, 3, and 5 are to appear in the output.   The data listing shown 
  318.         in figure 7 will appear on the screen. 
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.         ---------------------------------------------------
  333.          ID       LAND8001    POPG8001    POPG8003 
  334.         -----  ----------- ----------- ----------- 
  335.         00000  0   3539289 0 226545805 0       640  
  336.         01000  0     50767 0   3893888 0       767 
  337.         02000  0    570833 0    401851 0         7 
  338.         -----  ----------- ----------- ----------- 
  339.  
  340.          3 RECORDS LISTED
  341.  
  342.         HIT RETURN TO CONTINUE.
  343.         ---------------------------------------------------
  344.         Figure 7.  Data listing sample
  345.  
  346.  
  347.          This  may take some time to appear if you are requesting records 
  348.         at  the  end of a long file.  Hit RETURN.  The master  menu  will 
  349.         reappear.
  350.  
  351.         E. Partitioning Data Files
  352.  
  353.         Enter '4', 'PRODUCE A SUBSET OF A DATA FILE'. The system will ask 
  354.         for  the  input file name.  Enter 'DEMO1'.  After  reporting  the 
  355.         number  of items contained in the file,  the system will ask  for 
  356.         the output file name. Enter 'B:EXTRACT1'. When the system asks if 
  357.         you  wish to select a subset of records respond 'YES'.  The  menu 
  358.         shown  in figure 4 reappears.  This time enter  a  '2',  'DISPLAY 
  359.         CURRENT  SPECIFICATIONS'.  The  system will list the three  codes 
  360.         specified above.  (See fig.  6.)  Hit RETURN.  The same menu will 
  361.         reappear.   Enter   a  '1',   'USE  CURRENT   STATE-COUNTY   CODE 
  362.         SPECIFICATIONS'.  The system will then ask 'DO YOU WISH TO SELECT 
  363.         A SUBSET OF ITEMS?'  As before,  select items 1,3,  and 5.  While 
  364.         processing  the request,  the system lists the area code of  each 
  365.         record selected. The processing concludes with a statement of the 
  366.         number  of  records written to the output file followed  by  'HIT 
  367.         RETURN  TO  CONTINUE'.  A data dictionary for the output file  is 
  368.         automatically created. Hit RETURN. The master menu reappears.
  369.  
  370.         Before proceeding,  repeat the previous paragraph using DEMO2  as 
  371.         the  input file name and B:EXTRACT2 as the output file name.  Use 
  372.         the current specifications for record selection.  Select items 2, 
  373.         3, and 4 from each record.
  374.  
  375.         F. Combining Data Files
  376.  
  377.         Enter a '5',  'COMBINE TWO DATA FILES INTO ONE OUTPUT FILE'.  The 
  378.         following text appears stating the rules for combining files  and 
  379.         the consequence of their violation.
  380.  
  381.            THIS FUNCTION ASSUMES THAT THE TWO INPUT FILES HAVE THE SAME
  382.            RECORD COUNT AND ARE IN THE SAME SEQUENCE.
  383.            ANY MATCH FAILURE WILL RESULT IN TERMINATION OF THE REQUEST
  384.            AND DELETION OF THE OUTPUT FILE. THE TWO MISMATCHED IDS WILL
  385.            BE PRINTED.
  386.  
  387.         The user  is given an option to cancel the request at this point.
  388.         The system will request two input file names and one output  file 
  389.         name.  Use  'DEMO1'  for the first input file,  'DEMO2'  for  the 
  390.         second  input file and 'B:COMBO' for the output file.  (Note that 
  391.         files  EXTRACT1  and EXTRACT2 produced in the last section  could 
  392.         have been used here but are not.  EXTRACT1 will be used later  in 
  393.         section  G.) The system will then offer two options for selecting 
  394.         and ordering items  for inclusion in the output file as shown  in 
  395.         figure 8.
  396.  
  397.         -----------------------------------------------------------------
  398.         ITEM SELECTION AND ORDERING OPTIONS
  399.         -------------------------------------------------------------
  400.         1. ALL DATA ITEMS FROM BOTH INPUT FILES WILL BE PLACED IN THE
  401.            OUTPUT FILE (INPUT FILE 1 ITEMS FOLLOWED BY INPUT FILE 2
  402.            ITEMS).
  403.         2. USER WILL SELECT AND ORDER ITEMS.
  404.         -------------------------------------------------------------
  405.         ENTER NUMBER :
  406.  
  407.         -----------------------------------------------------------------
  408.         Figure   8.   Selection   and   ordering   options   menu  
  409.  
  410.         Option 1 is simple and needs no further discussion.  Enter a '2', 
  411.         'USER  WILL SELECT AND ORDER ITEMS'.  The system will ask for the 
  412.         selection  of  items from the input files to be included  in  the 
  413.         output  file.  The  system  asks a pair  of  questions  for  each 
  414.         selected item: 'WHAT FILE IS THE NEXT ITEM TO BE SELECTED FROM (1 
  415.         OR  2)?' and 'WHAT IS THE SEQUENCE NUMBER OF THE ITEM WITHIN THAT 
  416.         FILE?'.  (The  user must refer to a printed version of  the  data 
  417.         dictionaries  for  the  respective files to  select  the  desired 
  418.         sequence numbers.  See fig. 3 above.)  This pair of questions  is 
  419.         repeated until 'END' is entered in response to the first question 
  420.         of  a  pair.  Enter  responses for the  following  (file,sequence 
  421.         number)  pairs:    (1,3),   (2,2),  (2,3),  (2,4),  (2,5), (2,6). 
  422.         The specification procedure,  when finished, will appear as shown 
  423.         in figure 9.
  424.  
  425.         -----------------------------------------------------------------------
  426.         ENTER FILE FROM WHICH NEXT ITEM IS TO BE TAKEN (1 OR 2) (OR 'END') : 1
  427.         ENTER THE NUMBER OF THE DESIRED ITEM FROM THAT FILE : 3
  428.         ENTER FILE FROM WHICH NEXT ITEM IS TO BE TAKEN (1 OR 2) (OR 'END') : 2
  429.         ENTER THE NUMBER OF THE DESIRED ITEM FROM THAT FILE : 2
  430.         ENTER FILE FROM WHICH NEXT ITEM IS TO BE TAKEN (1 OR 2) (OR 'END') : 2
  431.         ENTER THE NUMBER OF THE DESIRED ITEM FROM THAT FILE : 3
  432.         ENTER FILE FROM WHICH NEXT ITEM IS TO BE TAKEN (1 OR 2) (OR 'END') : 2
  433.         ENTER THE NUMBER OF THE DESIRED ITEM FROM THAT FILE : 4
  434.         ENTER FILE FROM WHICH NEXT ITEM IS TO BE TAKEN (1 OR 2) (OR 'END') : 2
  435.         ENTER THE NUMBER OF THE DESIRED ITEM FROM THAT FILE : 5
  436.         ENTER FILE FROM WHICH NEXT ITEM IS TO BE TAKEN (1 OR 2) (OR 'END') : 2
  437.         ENTER THE NUMBER OF THE DESIRED ITEM FROM THAT FILE : 6
  438.         ENTER FILE FROM WHICH NEXT ITEM IS TO BE TAKEN (1 OR 2) (OR 'END') : END
  439.         -------------------------------------------------------------------------
  440.         Figure 9. Listing showing the specification of items for a combined file. 
  441.  
  442.         After the user enters 'END', the system will process the request. 
  443.         The  area  codes will be listed on the screen as  the  processing 
  444.         proceeds.  When  finished,  the  system will report  '93  RECORDS 
  445.         OUTPUT. HIT RETURN TO CONTINUE'. Hit RETURN. 
  446.  
  447.  
  448.         G. Copying Data Files With Area Names And Metro Codes Added
  449.  
  450.         UTILITYC is  not designed to partition the  geographic  reference 
  451.         files (CCDB00.TXT for counties and  CCDB40.TXT for  cities).  The 
  452.         system will,  however,  add the area names and metropolitan codes 
  453.         from the geographic reference files to the records of data files. 
  454.         This  operation must be deferred until all desired partitions and 
  455.         recombinations of data files have been completed since the  files 
  456.         output  using  this  operation cannot serve  as  input  to  other 
  457.         UTILITYC operations. The typical application will append the area 
  458.         names and metropolitan codes as the final step before entering  a 
  459.         data base package.
  460.  
  461.         From  the master menu enter a '6',  'PRODUCE COPY OF A DATA  FILE 
  462.         WITH AREA NAMES AND CODES ADDED'. The system will respond: 'ENTER 
  463.         DATA  FILE NAME :  '.  Enter 'B:EXTRACT1'.   The system will then 
  464.         respond:   'ENTER OUTPUT FILE NAME :   '. Enter 'B:WITHNAME'. The 
  465.         system  will  then respond:   'ENTER  GEOGRAPHIC  REFERENCE  FILE  
  466.         NAME  :  '.  Enter 'DEMONAME'. (When dealing with the actual CCDB 
  467.         file  sets you wil enter  'CCDB00'  for  the  county   geographic  
  468.         reference   file   or 'CCDB40' for the city geographic  reference 
  469.         file.)  The  system will list the State-county codes on the  data 
  470.         file   as  they   are  matched by  records  from  the  geographic 
  471.         reference   file.  Upon  completion,   the  system  will  report:  
  472.         'NAMES AND CODES ADDED TO 3 RECORDS.   HIT RETURN TO  CONTINUE.'.  
  473.         Hit RETURN.   The master menu  will  reappear.   The  system does 
  474.         not  provide   a  means  of  listing  this  output file.   To  do 
  475.         that we must first  exit  from UTILITYC.  Enter a '7',  'FINISHED 
  476.         WITH  UTILITYC  PROGRAM'.   'A>' should  appear  on your  screen.  
  477.         Turn your printer on  and  enter 'TYPE  B:WITHNAME'.  The listing 
  478.         should appear as shown in figure 10.
  479.  
  480.         -------------------------------------------------------------------
  481.         A>TYPE B:WITHNAME
  482.         00000,     ,  ,    ,    ,"UNITED      STATES",0,3539289,0,
  483.         226545805,0,640
  484.         01000,     ,  ,    ,    ,"ALABAMA",0,50767,0,3893888,0,767
  485.         02000,     ,  ,    ,    ,"ALASKA",0,570833,0,401851,0,7
  486.         -------------------------------------------------------------------
  487.         Figure 10. Listing of file with names and codes attached
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.